<?php
/**
 * Control content for static portion of site
 *  
 * author: Chris Lunsford
 **/
class ContentModel extends Model {
	
	function __construct() {
		parent::__construct();
	}
	
	function createBIYL($post) {
		$this->db->insert('cms_biyl', $post);
	}
	
	function deleteBIYL($id) {
		$this->db->where('id', $id);
		$this->db->delete('cms_biyl');
	}
	
	function updateBIYL($id, $post) {
		$this->db->where('id', $id);
		$this->db->update('cms_biyl', $post);
	}
	
	function getBIYL($id) {
		$this->db->where('id', $id);
		return $this->db->get('cms_biyl')->row();
	}
	
	function getBIYLs() {
		return $this->db->get('cms_biyl');
	}
}
?>